<!DOCTYPE html>
<html lang="<?php echo Yii::app()->language; ?>">
	<head>
		<meta name="language" content="<?php echo CHtml::encode($this->pageTitle) . ' - ' . Yii::app()->name; ?>" />
		<meta charset="utf-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="keywords" content="yamii, business" />
		<meta name="description" content="<?php echo CHtml::encode($this->pageTitle) . ' - ' . Yii::app()->name; ?>" />
		<link href="<?php echo Yii::app()->baseUrl; ?>/assets/css/theme_venera_blue.css" media="all" rel="stylesheet" type="text/css" />
		<link href="http://fonts.googleapis.com/css?family=Abel:400|Oswald:300,400,700" media="all" rel="stylesheet" type="text/css" />
		<link href="<?php echo Yii::app()->baseUrl; ?>/assets/css/intro.css" media="all" rel="stylesheet" type="text/css" />
		<link rel="shortcut icon" href="<?php echo Yii::app()->baseUrl; ?>/img/favicon.ico">
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		<title><?php echo CHtml::encode($this->pageTitle) . ' - ' . Yii::app()->name; ?></title>
	</head>
	<body>
		<!--[if lt IE 7]>
		<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
		<![endif]-->
		<header id='header'>
			<div class='navbar navbar-fixed-top'>
				<div class='navbar-inner'>
					<div class='container'>
						<a class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse'>
							<span class='icon-bar'></span>
							<span class='icon-bar'></span>
							<span class='icon-bar'></span>
						</a>
						<a href="http://business.yamii.fi" class="brand">
							Yamii <small>for Business</small>
						</a>
						<div class='nav-collapse subnav-collapse collapse pull-right' id='top-navigation'>
							<ul class="nav">
								<li>
									<a href="http://yamii.fi/" class="bottom-line" target="_blank">
										<span class="nav-main-title">Yamii App</span>
										<br />
										<span class="nav-sub-title"><?php echo BUtils::T('yamii_app_msg'); ?></span>
									</a>
								</li>
								<li>
									<a href="http://yamii.fi/place" class="bottom-line" target="_blank">
										<span class="nav-main-title"><?php echo BUtils::T('yamii_explore_lbl'); ?></span>
										<br />
										<span class="nav-sub-title"><?php echo BUtils::T('yamii_explore_msg'); ?></span>
									</a>
								</li>
								<li class="<?php echo ($this->action->id == 'index') ? 'active' : ''; ?>">
									<a href="<?php echo Yii::app()->createUrl('/intro'); ?>" class="bottom-line">
										<span class="nav-main-title">for Business</span>
										<br />
										<span class="nav-sub-title"><?php echo BUtils::T('yamii_biz_msg'); ?></span>
									</a>
								</li>
								<li class='dropdown'>
									<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo BUtils::T('_LNG_NAME'); ?> <b class="caret"></b></a>
									<ul class='dropdown-menu'>
										<li><a href="<?php echo Yii::app()->createUrl('/site/language', array('lang' => 'en_GB')); ?>"><i class="icon-check-empty"></i> English</a></li>
										<li><a href="<?php echo Yii::app()->createUrl('/site/language', array('lang' => 'fi_FI')); ?>"><i class="icon-check-empty"></i> Suomi</a></li>
									</ul>
								</li>
							</ul>
							<div class='top-account-control visible-desktop'>
								<a href="<?php echo Yii::app()->createUrl('/accounts/register'); ?>" class="top-create-account"><?php echo BUtils::T('create_account_btn'); ?></a>
								<a href="<?php echo Yii::app()->createUrl('/accounts/login'); ?>" class="top-sign-in"><?php echo BUtils::T('login_lbl'); ?></a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</header>

		<?php echo $content; ?>

		<footer>
			<div class="pre-footer">
				<div class="container">
					<div class="row">
						<div class="span3">
							<h5 class="footer-header"><?php echo BUtils::T('for_merchant_lbl'); ?></h5>
							<ul class="footer-list">
								<li>
									<a href="<?php echo Yii::app()->createUrl('/accounts/login'); ?>"><?php echo BUtils::T('merchant_login_lbl'); ?></a>
								</li>
								<li>
									<a href="<?php echo Yii::app()->createUrl('/intro'); ?>"><?php echo BUtils::T('take_tour_lbl'); ?></a>
								</li>
							</ul>
						</div>
						<div class="offset1 span3">
							<h5 class="footer-header"><?php echo BUtils::T('for_consumers_lbl'); ?></h5>
							<ul class="footer-list">
								<li>
									<a href="http://yamii.fi/place" target="_blank"><?php echo BUtils::T('yamii_explore_msg'); ?></a>
								</li>
								<li>
									<a href="http://yamii.fi/accounts/login" target="_blank"><?php echo BUtils::T('for_consumers_lbl'); ?></a>
								</li>
								<li>
									<a href="http://yamii.fi/app/faq" target="_blank">FAQ</a>
								</li>
							</ul>
						</div>
						<div class="offset1 span4">
							<h5 class="footer-header"><?php echo BUtils::T('organizers_lbl'); ?></h5>
							<ul class="footer-img-list thumbnails">
								<li class="span2">
									<a href="http://www.newcofactory.fi/" target="_blank">
										<img style="width:100%;max-width:280px;" alt="NewCo Factory" src="<?php echo Yii::app()->baseUrl; ?>/assets/images/logos/newco-factory.jpg" />
									</a>
								</li>
								<li class="span2">
									<a href="http://www.welcomeweeks.fi/" target="_blank">
										<img style="width:100%;max-width:280px;" alt="Welcomeweeks Helsinki" src="<?php echo Yii::app()->baseUrl; ?>/assets/images/logos/hrww.jpg" />
									</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class='deep-footer'>
				<div class='container'>
					<div class='row'>
						<div class='span6'>
							<div class='copyright'>Copyright &copy; 2013 LBB Solutions Oy</div>
						</div>
						<div class='span6'>
							<ul class='footer-links'>
								<li>
									<a href="http://www.facebook.com/yamiideal" target="_blank">
										<i class="icon-facebook-sign"></i> <?php echo BUtils::T('let_friends_lbl'); ?>
									</a>
								</li>
								<li>
									<a href="<?php echo Yii::app()->createUrl('/site/privacy'); ?>"><?php echo BUtils::T('privacy_policy_lbl'); ?></a> 
								</li>
								<li>
									<a href="<?php echo Yii::app()->createUrl('/site/terms'); ?>"><?php echo BUtils::T('terms_of_use_lbl'); ?></a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</footer>
		<script src="<?php echo Yii::app()->baseUrl; ?>/assets/js/jquery-1.10.1.min.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->baseUrl; ?>/assets/js/bootstrap.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->baseUrl; ?>/assets/js/prettify.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->baseUrl; ?>/assets/js/lightbox.js" type="text/javascript"></script>
		<script src="<?php echo Yii::app()->baseUrl; ?>/assets/js/main.js" type="text/javascript"></script>
		<!-- customized libs -->
		<script type="text/javascript">
			function _push(d){$.post('<?php echo Yii::app()->createUrl('/accounts/push'); ?>', d)}
		</script>
		<?php
		if (!YII_DEBUG) {
			$logedIn = Yii::app()->user->isGuest ? 'false' : 'true';
			?>
			<script type="text/javascript">
				var _gaq = _gaq || [];
				_gaq.push(['_setAccount', 'UA-33072428-1']);
				_gaq.push(['_trackPageview']);
				_gaq.push(['_trackPageLoadTime']);
				_gaq.push(['_setCustomVar', 1, 'Logged in', '<?php echo $logedIn; ?>', 2]);
				(function() {
					var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
					ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
					var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
				})();
			</script>
		<?php } ?>
	</body>
</html>